//
//  SearchPatient.h
//  Cabinet
//
//  Created by Florent Montsegur on 01/05/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "PersonViewControler.h"

@interface SearchPatient : NSWindowController {
@private
    NSTableView *__unsafe_unretained mPersons;
    NSTextField *__unsafe_unretained mCountLabel;
    
    PersonViewControler *mTableControler;
    NSInteger mSelectedIndex;
    int mResult;
}

@property (unsafe_unretained) IBOutlet NSTableView *mPersons;
@property (unsafe_unretained) IBOutlet NSTextField *mCountLabel;

- (IBAction)okAction:sender;
- (IBAction)annulerAction:sender;

- (void) closeWindow;
- (void) withParentWindow:parentWindow;
- (int) returnCode;
- (void) setPersons:(NSArray*)aPersonList;

- (Person*) selectedPerson;

@end
